package com.doctor.database.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "t_patient_info")
public class Patient implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 2401161159560193763L;

	@Id
	@Column(name = "c_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	
	@Column(name = "c_name", nullable = false)
	private String name;
	
	@Column(name = "c_age", nullable = false)
	private String age;
	
	@Column(name = "c_address", nullable = false)
	private String address;
	
	@Column(name = "c_phone", nullable = false)
	private String phone;
	
	@Column(name = "c_account_id", nullable = false)
	private Long accountId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Long getAccountId() {
		return accountId;
	}

	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}
}
